// import components from './components'
var app = getApp();     // 取得全局App
Page({
    data: {
        components:[],
    },
  onLoad: function (options){
    //根据用户的权限，加载菜单
    //console.log("index.app.globalData.components" + app.globalData.components)
      this.setData({
        components: app.globalData.components
      })
   // console.log('index.components:', this.data.components)
    },
  onShareAppMessage() {
    return {
      title: '黄江医院综合查询分析的微信小程序',
      path: '/pages/index/index',
      imageUrl: '../../images/logo.png',
    }
  },
})
